package com.amading.controller;

import com.amading.entity.ImMessage;
import com.amading.repository.ImMessageRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Repository;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;

@Controller
public class TestController {



    @RequestMapping(value = "/test",method = RequestMethod.GET)
    @ResponseBody
    private String test(HttpServletRequest request, Model model){

        return "test";
    }
}
